//
//  XDUpdatePanelViewController.m
//  iphone.mobileoa
//
//  Created by 李亚春 on 13-6-26.
//  Copyright (c) 2013年 Epoint. All rights reserved.
//

#import "XDUpdatePanelViewController.h"
#import "UIViewController+MJPopupViewController.h"

@interface XDUpdatePanelViewController ()

@end

@implementation XDUpdatePanelViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (IBAction)cancelAction:(id)sender {
    [self.delegate cancelPopWindow];
}

- (IBAction)downloadAction:(id)sender {
    [self.delegate okAction];
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.tvUpdateInfo.text = [intentParams objectForKey:@"updateinfo"];
    [self.customBackground removeFromSuperview];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)dealloc {
    [_tvUpdateInfo release];
    [super dealloc];
}
- (void)viewDidUnload {
    [self setTvUpdateInfo:nil];
    [super viewDidUnload];
}
@end
